package com.x.uikit.tabpage;

import android.content.Context;
import android.widget.FrameLayout;

import androidx.annotation.NonNull;

import com.x.uikit.page.XLifecycle;
import com.x.uikit.page.XLifecycleListener;

public class XTabPage extends FrameLayout implements XLifecycleListener {
    protected final XLifecycle mLifecycle = new XLifecycle();

    public XTabPage(@NonNull Context context) {
        super(context);
        mLifecycle.addObserver(this);
    }

    public XLifecycle getLifecycle() {
        return mLifecycle;
    }

    @Override
    public void onCreate() {

    }

    @Override
    public void onStart() {

    }

    @Override
    public void onResume() {

    }

    @Override
    public void onPause() {

    }

    @Override
    public void onStop() {

    }

    @Override
    public void onDestroy() {

    }
}
